﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using A2DFramework.EsbService;
using A2DFramework.EventService;
using A2DFramework.InstanceService;

namespace A2DFramework.Infrastructure.Mvc.MvcControllers
{
    public abstract class BaseController : Controller
    {
        private IEventBus evtBus;

        /// <summary>
        /// 事件总线
        /// </summary>
        protected IEventBus EventBus
        {
            get
            {
                if (evtBus==null)
                    evtBus=ObjectFactory.Resolve<IEventBus>();

                return evtBus;
            }
        }
    }
}
